package com.czxy.changgou3.com.czxy.changgou3.mapper;

import com.czxy.changgou3.pojo.SkuPhoto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/4/29
 */
@org.apache.ibatis.annotations.Mapper
public interface SkuPhotoMapper extends Mapper<SkuPhoto> {


    /**
     * 通过sku查询图片
     * @param skuId
     * @return
     */
    @Select("select * from tb_sku_photo where sku_id = #{skuId}")
    public List<SkuPhoto> findSkuPhotoBySkuId(@Param("skuId") Integer skuId);
}
